cmake_minimum_required(VERSION 2.8.0)
project(zpsoe.zlog CXX)

if(MSVC)
    # CMAKE_INSTALL_PREFIX default to c:/Program Files on Windows.
    # Use default CMAKE_INSTALL_PREFIX
else()
    # CMAKE_INSTALL_PREFIX default to /usr/local on UNIX.
    set(CMAKE_INSTALL_PREFIX /usr/local/zpsoe.zlog)
endif()

include(cmake/CompilerChecks.cmake)
include(cmake/CompilerFlags.cmake)
include_directories("include")

add_subdirectory(zlog)
add_subdirectory(zlog_test)